package com.wanmait.baohan.service;


import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.pojo.TravelApplication;import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TravelApplicationService extends CommonService<TravelApplication> {
    void submitApplication(TravelApplication travelApplication);

    PageInfo<TravelApplication> selectMyApplication(Integer page, Integer limit, TravelApplication travelApplication, Date beginDate, Date endDate);

    //高文强  查找所有的申请单
    PageInfo<TravelApplication> selectAll(Integer page, Integer limit, TravelApplication travelApplication, Date beginDate, Date endDate);


    //高文强  根据个人id查找所有审批通过的出差申请
    PageInfo<TravelApplication> selectMyApplicationCarryOut(@Param("page") Integer page, @Param("limit") Integer limit, @Param("id") Integer id);

    void rejectApplication(Integer id, String rejectInfo);

    //hxn 找到全部可以订票的出差申请
    List<TravelApplication> findAllApplicationCanBooking(Integer id);

    //高文强  修改节点
    void modifyNode(TravelApplication travelApplication);


}
